home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The 640 MEG Shareware Studio 2
/
The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO
/
clang
/
tcclib.zip
/
DEMO.C
next >
Wrap
Text File
|
1989-02-11
|
983b
|
47 lines
#include <conio.h>
#include <process.h>
#include "tcclib.h"
void ScanTreeDemo( void );
void GetFileDemo( void );
void GetFieldDemo( void );
void WindowListerDemo( void );
/* GLOBAL VARIABLES NEEDED FOR THE LIBRARY */
unsigned char attrib = 0x07;
unsigned char A_REVERSE = 0x70;
unsigned char A_NORMAL = 0x07;
void main()
{
for (;;) {
clrscr();
ExplodeBox( 20, 6, 60, 20 );
Center( 8, "F1 - ScanTree Demonstration" );
Center( 10, "F2 - WindowLister Demonstration" );
Center( 12, "F3 - GetFile Demonstration" );
Center( 14, "F4 - GetField Demonstration" );
Center( 16, "F5 - Quit" );
AtSay( 25, 18, "Your Choice : " );
HideCursor();
switch( GComm() ) {
case F1:
ScanTreeDemo();
break;
case F2:
WindowListerDemo();
break;
case F3:
GetFileDemo();
break;
case F4:
GetFieldDemo();
break;
case F5:
case ESC:
exit(0);
}
}
}